package com.zzzy.mapper;

import com.zzzy.po.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;


public interface UserMapper {
    @ResultMap(value = "BaseResultMap")
    @Select("SELECT * FROM user WHERE  id = #{id}")
    User selectById(int id);

    @Insert("insert into user (name, age)  values (#{name}, #{age})")
    void insertUser(User user);
}
